import sys
from PyQt5.QtCore import *  # type: ignore
from PyQt5.QtGui import *  # type: ignore
from PyQt5.QtWidgets import *  # type: ignore

from traits.api import *
from traitsui.api import *


class MyWidget(QWidget):
    def __init__(self):
        super(MyWidget, self).__init__()
        self.resize(400, 300)
        self.pushButton = QPushButton('haha mywidgetetrjek',self)
        self.pushButton.setGeometry(QRect(40, 110, 75, 23))
        self.pushButton.clicked.connect(self.test)

    def test(self):
        print('this my widget')


if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MyWidget()
    window.show()
    sys.exit(app.exec_())
